﻿using OnWork.DataCenter.DAL.DataCenter;

namespace OnWork.DataCenter.BLL.Standard.Dto
{
    /// <summary>
    /// 流程处理返回类型
    /// </summary>
    public class ProcessStandardResultDto
    {
        public ProcessStandardResultDto()
        {
        }

        public ProcessStandardResultDto(bool isSuccess, DataStandardType standardType, object result)
        {
            IsSuccess = isSuccess;
            Result = result;
            ResultType = standardType;
        }

        /// <summary>
        /// 是否成功
        /// </summary>
        public bool IsSuccess { get; set; }

        /// <summary>
        /// 返回结果
        /// </summary>
        public object Result { get; set; }

        /// <summary>
        /// 返回结果类型
        /// </summary>
        public DataStandardType ResultType { get; set; }
    }
}